package ch.fusun.baron.serverapp.view;

import ch.fusun.baron.core.service.UserService;

/**
 * The root for the users view
 */
public class UsersViewRoot {

	private final UserService userService;

	/**
	 * @param userService
	 *            The user service
	 */
	public UsersViewRoot(UserService userService) {
		this.userService = userService;
	}

	/**
	 * @return All users
	 */
	public Object[] getUsers() {
		return userService.getUsers().toArray();
	}

}
